import { http } from './../utils'
const checkLogin = params => http.post('/api/administrator/checklogin', params) //登录
const noticelist = params => http.get('/api/stores/list',params) //门店列表
const noticedel = params => http.get('/api/stores/delete',params) //门店单删
const noticeadd = params => http.post('/api/stores/add',params) //门店添加
const clerklist = params => http.get('/api/staff/list',params) //职员列表
const clerkdel = params => http.get('/api/staff/delete',params) //职员单删
const clerkadd = params => http.post('/api/staff/add',params) //职员添加
const repairslist = params => http.get('/api/repairs/list', params)//故障报修列表
const repairsdelete = params => http.get('/api/repairs/delete', params)//故障报修删除
const adminlist = params => http.get('/api/administrator/list', params)//管理员列表
const admindelete = params => http.get('/api/administrator/delete', params)//管理员删除
const getrepairslist = params => http.get('/api/repairstype/list', params)//故障报修维修类型
const state = params => http.get('/api/repairstate/list', params) //故障报修维修状态
const getlist = params => http.get('/api/news/list', params) //公告列表
const getdelete = params => http.get('/api/news/delete', params) //公告单删
const getdeletell = params => http.post('/api/news/deleteall', params) //公告批删
const newstypelist = params => http.post('/api/newstype/list', params) //公告类型查询
const newslist = params => http.get('/api/news/get', params) //
const getinmate = params => http.get('/api/userinfo/list', params)//居民管理列表
const getinmatelist = params => http.get('/api/userinfotype/list', params)//获取居民类型
const getrole = params => http.get('/api/administratorrole/list', params)//添加角色
const getinmatebuild = params => http.get('/api/building/list', params)//获取楼栋列表
const getinmatedelete = params => http.get('/api/userinfo/delete', params)//删除居民
const userinfoDelAll = params => http.post('/api/userinfo/deleteall',params) //批量删除居民信息
const complaintlist = params => http.get('/api/questions/list', params)//投诉列表
const houseslist = params => http.get('/api/houses/list', params)//房间管理列表
const getstatelist = params => http.get('/api/questionstate/list', params)//投诉状态渲染列表
const getquestionlist = params => http.get('/api/questiontype/list', params)//投诉类型渲染列表
const getbuildinglist = params => http.get('/api/building/list', params)//楼栋id渲染列表
const complaintdelete = params => http.get('/api/questions/delete', params)//投诉单删 
const housedelete = params => http.get('/api/houses/delete', params) //房间管理单删
const getroledeldte = params => http.get('/api/administratorrole/delete',params) //删除角色
const userinfoDel = params => http.post('/api/questions/deleteall', params) //投诉批删 
const userinfoDelel = params => http.post('/api/houses/deleteall', params) //房间批删
const noticedelel = params => http.post('/api/stores/deleteall',params) //门店批删
const clerkdelel = params => http.post('/api/staff/deleteall',params) //门店批删
const repairsdeletell = params => http.post('/api/repairs/deleteall', params)//故障报修批删
const administratorrolelist = params => http.get('/api/administratorrole/list', params)//管理员角色
const buildinglist = params => http.get('/api/building/list', params) //楼栋管理列表
const roomadd = params => http.post('/api/houses/add', params) // 房间添加
const newsadd = params => http.post('api/news/add', params) //公告页面添加
const getnewstypelist = params => http.get('api/newstype/list', params) //公告分类信息搜索
const adminadd = params => http.post('/api/administrator/add', params)//管理员添加
const getinmateadd = params => http.post('/api/userinfo/add',params) // 添加居民
const repairsadd = params => http.post('/api/repairs/add', params)//报修修改
export {
    checkLogin,
    noticelist,
    noticedel,
    noticeadd,
    clerklist,
    clerkdel,
    clerkadd,
    repairslist,
    repairsdelete,
    adminlist,
    admindelete,
    getrepairslist,
    state,
    getlist,
    getdelete,
    getdeletell,
    newstypelist,
    newslist,
    getinmate,
    getrole,
    getinmatelist,
    getinmatebuild,
    getinmatedelete,
    userinfoDelAll,
    complaintlist,
    houseslist,
    getstatelist,
    getquestionlist,
    getbuildinglist,
    complaintdelete,
    housedelete,
    getroledeldte,
    userinfoDel,
    userinfoDelel,
    noticedelel,
    clerkdelel,
    repairsdeletell,
    administratorrolelist,
    buildinglist,
    roomadd,
    newsadd,
    getnewstypelist,
    adminadd,
    getinmateadd,
    repairsadd
}
export default {}